package com.supreme.commonmongo.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Document(value = "demo")
public class MngDemo implements Serializable {

    @Id
    private String id;

    @Field(name = "demo_name")
    private String demoName;
}
